The U.S. military had intervened against the Muslims in the Lebanese Civil War, a policy that Defense Secretary Caspar Weinberger warned put U.S. troops at grave risk prior to the truck bomb.
https://libertarianinstitute.org/articles/the-full-story-of-1983-beirut-barracks-bombing-that-pete-hegseth-wont-tell-you/